<template>
  <div>

    <div>
      <el-form :show-message="false" :inline="true" :model="modelValue" :label-width="formConfig.labelWidth" ref="form"
        :validate-on-rule-change="false">
        <template v-for="item in formConfig.formItemList">
          <child-page v-model="modelValue[item.key]" :objAll="modelValue" :item="item"></child-page>
        </template>
      </el-form>
    </div>
  </div>
</template>
  


<script setup>
import childPage from './child.vue';
import { defineProps, defineEmits } from 'vue'; //获取父组件传的props和向父组件发送方法


// 获取父组件的传参
const props = defineProps({
  modelValue: {
    type: String,
    required: true,//是否必要传值
  },
  formConfig: {
    type: Object,
    default: () => {
      return {}
    }
  }
});
const emits = defineEmits(['update:modelValue']);

// emits('update:modelValue', { billTypeName: '1223' })
</script>
  
<style lang="less"></style>
  